package com.design.pattern.chain_of_responsibility;

public class Client {
    public static void main(String[] args) {
        AbstractTransportPointChain qingDao=new QingDaoTransportPointChain();
        AbstractTransportPointChain beiJing=new BeiJingTransportPointChain();
        beiJing.setNext(qingDao);
        beiJing.doHandler(new PackageInfo().setSource("北京").setDestination("青岛"));
    }
}
